<?php
	// This should be the path to the root of SourceBB, including a trailing slash
	$sourcebb_dir = "/home/ccgaming/public_html/dev/sourcebb/";
	$phpbb_dir = "/home/ccgaming/public_html/dev/";

	define('PHPBB_ROOT_PATH', $phpbb_dir);

	require_once($sourcebb_dir . 'settings.php');
	require_once($sourcebb_dir . 'classes/db.php');
	require_once($sourcebb_dir . "classes/phpbb.php");

	// Create the phpBB Processor
	$phpbb = new SourceBB_Process_phpBB($sourcebb_dir);

	// Get a list of all users with verified Steam ID's
	$user_query = mysql_query("SELECT id FROM sm_admins");
	
	while($user_object = mysql_fetch_assoc($user_query))
	{
		echo("Processing user " . $user_object['id'] . "\n");
		$phpbb->updateSBBID($user_object['id']);
		echo("Processed user " . $user_object['id'] . "\n");
	}

?>